package onion.molingo2o.activity.request;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.easemob.chat.EMChatManager;
import com.easemob.chatuidemo.ui.BaseActivity;

import java.util.ArrayList;
import java.util.List;

import onion.molingo2o.Config;
import onion.molingo2o.R;
import onion.molingo2o.activity.ChatActivity;
import onion.molingo2o.adapter.ImageAdapter;
import onion.molingo2o.adapter.OnionAdapter;
import onion.molingo2o.bean.RequestSimple;

/**
 * Created by Administrator on 2015/11/11.
 */
public class ResponDetailActivity extends BaseActivity {
ImageView iv_talk;
    GridView gv_response;
    List<RequestSimple> list=new ArrayList<>();
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(R.layout.activity_regidetail);
        initTitle("", "报名详细信息", R.drawable.add);
        iv_talk= (ImageView) findViewById(R.id.iv_talk);
        iv_talk.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(ResponDetailActivity.this,ChatActivity.class);
                Log.i("onion","currentUser"+ EMChatManager.getInstance().getCurrentUser());
                intent.putExtra(Config.INTENT_USEID, "onion1245678");
                startActivity(intent);
            }
        });
        ArrayList<String>  imgUrls=new ArrayList<>();
        imgUrls.add("http://pica.nipic.com/2007-11-09/200711912453162_2.jpg");
        imgUrls.add("http://pica.nipic.com/2007-11-09/200711912453162_2.jpg");
        imgUrls.add("http://pica.nipic.com/2007-11-09/200711912453162_2.jpg");
        imgUrls.add("http://pica.nipic.com/2007-11-09/200711912453162_2.jpg");
        imgUrls.add("http://pica.nipic.com/2007-11-09/200711912453162_2.jpg");
        gv_response= (GridView) findViewById(R.id.gv_response);
        gv_response.setAdapter(new ImageAdapter(this,imgUrls));
        findViewById(R.id.btn_submit).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(ResponDetailActivity.this,OrderCreateActivity.class));
            }
        });
    }

}